package mylibrary.com.thinking.java.chapter15.s1510;

public class Test1 <T extends Fruit>{

	private T x;
	public Test1(T x) {
		this.x = x;
	}
	
	public T get() {
		return x;
	}
	
	public static void main(String[] args) {
		
		Test1<Apple> test = new Test1<Apple>(new Apple());
		System.out.println(test.get());
		
		Test1<Fruit> test2 = new Test1<Fruit>(new Apple());
		
	}
}
